<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">

	<title>商品页面</title>

	<link href="/ho/AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css" />
	<link href="/ho/AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css" />
	<link href="/ho/basic/css/demo.css" rel="stylesheet" type="text/css" />
	<link type="text/css" href="/ho/css/optstyle.css" rel="stylesheet" />
	<link type="text/css" href="/ho/css/style.css" rel="stylesheet" />

	<script type="text/javascript" src="/ho/basic/js/jquery-1.7.min.js"></script>
	<script type="text/javascript" src="/ho/basic/js/quick_links.js"></script>

	<script type="text/javascript" src="/ho/AmazeUI-2.4.2/assets/js/amazeui.js"></script>
	<script type="text/javascript" src="/ho/js/jquery.imagezoom.min.js"></script>
	<script type="text/javascript" src="/ho/js/jquery.flexslider.js"></script>
	<script type="text/javascript" src="/ho/js/list.js"></script>
	<script src="{{asset('layer/layer.js')}}"></script>
</head>

<body>


<!--顶部导航条 -->
<div class="am-container header">
	<ul class="message-l">
		<div class="topMessage">
			<div class="menu-hd">
				<a href="/home/login" target="_top" class="h">亲，请登录</a>
				<a href="/ho/#" target="_top">免费注册</a>
			</div>
		</div>
	</ul>
	<ul class="message-r">
		<div class="topMessage home">
			<div class="menu-hd"><a href="/home/index" target="_top" class="h">商城首页</a></div>
		</div>
		<div class="topMessage my-shangcheng">
			<div class="menu-hd MyShangcheng"><a href="/ho/#" target="_top"><i class="am-icon-user am-icon-fw"></i>个人中心</a></div>
		</div>
		<div class="topMessage mini-cart">
			<div class="menu-hd"><a id="mc-menu-hd" href="{{asset('home/cart')}}" target="_top"><i class="am-icon-shopping-cart  am-icon-fw"></i><span>购物车</span><strong id="J_MiniCartNum" class="h">0</strong></a></div>
		</div>
		<div class="topMessage favorite">
			<div class="menu-hd"><a href="/ho/#" target="_top"><i class="am-icon-heart am-icon-fw"></i><span>收藏夹</span></a></div>
	</ul>
</div>

<!--悬浮搜索框-->

<div class="nav white">
	<div class="logo"><img src="/ho/images/logo.png" /></div>
	<div class="logoBig">
		<li><img src="/ho/images/logobig.png" /></li>
	</div>
	<div class="search-bar pr">
		<a name="index_none_header_sysc" href="/ho/#"></a>
		<form>
			<input id="searchInput" name="index_none_header_sysc" type="text" placeholder="搜索" autocomplete="off">
			<input id="ai-topsearch" class="submit am-btn" value="搜索" index="1" type="submit">
		</form>
	</div>
</div>

<div class="clear"></div>
<b class="line"></b>
<div class="listMain">

	<!--分类-->

	<ol class="am-breadcrumb am-breadcrumb-slash">
		<li><a href="/ho/#">首页</a></li>

		<li class="am-active">内容</li>
	</ol>
	<script type="text/javascript">
        $(function() {});
        $(window).load(function() {
            $('.flexslider').flexslider({
                animation: "slide",
                start: function(slider) {
                    $('body').removeClass('loading');
                }
            });
        });
	</script>
	<div class="scoll">
		<section class="slider">
			<div class="flexslider">
				<ul class="slides">
					<li>
						<img src="/ho/images/01.jpg" title="pic" />
					</li>
					<li>
						<img src="/ho/images/02.jpg" />
					</li>
					<li>
						<img src="/ho/images/03.jpg" />
					</li>
				</ul>
			</div>
		</section>
	</div>

	<!--放大镜-->

	<div class="item-inform">
		<div class="clearfixLeft" id="clearcontent">

			<div class="box">
				<script type="text/javascript">
                    $(document).ready(function() {
                        $(".jqzoom").imagezoom();
                        $("#thumblist li a").click(function() {
                            $(this).parents("li").addClass("tb-selected").siblings().removeClass("tb-selected");
                            $(".jqzoom").attr('src', $(this).find("img").attr("mid"));
                            $(".jqzoom").attr('rel', $(this).find("img").attr("big"));
                        });
                    });
				</script>


				<div class="tb-booth tb-pic tb-s310">
					<a href="/ho/images/01.jpg"><img src="http://lamp187mall.oss-cn-beijing.aliyuncs.com/{{$data[0]['gphoto']}}" alt="细节展示放大镜特效" rel="images/01.jpg" class="jqzoom" /></a>
				</div>
				<ul class="tb-thumb" id="thumblist">
					<li class="tb-selected">
						<div class="tb-pic tb-s40">
							<a href="/ho/#"><img src="http://lamp187mall.oss-cn-beijing.aliyuncs.com/{{$data[0]['gphoto']}}" mid="images/01_mid.jpg" big="images/01.jpg"></a>
						</div>
					</li>

				</ul>
			</div>

			<div class="clear"></div>
		</div>

		<div class="clearfixRight">

			<!--规格属性-->
			<!--名称-->
			<div class="tb-detail-hd">
				<h1>
					{{$data[0]['gname']}}
				</h1>
			</div>
			<div class="tb-detail-list">
				<!--价格-->
				<div class="tb-detail-price">
					<li class="price iteminfo_price">
						<dt>价格</dt>
						<dd><em>¥</em><b class="sys_item_price">{{$data[0]['gcost']}}</b>  </dd>
					</li>
					<li class="price iteminfo_mktprice">
						<dt>库存</dt>
						<dd>{{$data[0]['gnum']}}</dd>
					</li>
					<div class="clear"></div>
				</div>

				<!--地址-->

				<div class="clear"></div>

				<!--销量-->
				<ul class="tm-ind-panel">
					<li class="tm-ind-item tm-ind-sellCount canClick">
						<div class="tm-indcon"><span class="tm-label">月销量</span><span class="tm-count">1015</span></div>
					</li>
					<li class="tm-ind-item tm-ind-sumCount canClick">
						<div class="tm-indcon"><span class="tm-label">累计销量</span><span class="tm-count">6015</span></div>
					</li>
					<li class="tm-ind-item tm-ind-reviewCount canClick tm-line3">
						<div class="tm-indcon"><span class="tm-label">累计评价</span><span class="tm-count">640</span></div>
					</li>
				</ul>
				<div class="clear"></div>

				<!--各种规格-->
				<dl class="iteminfo_parameter sys_item_specpara">
					<dt class="theme-login"><div class="cart-title">可选规格<span class="am-icon-angle-right"></span></div></dt>
					<dd>
						<!--操作页面-->

						<div class="theme-popover-mask"></div>

						<div class="theme-popover">
							<div class="theme-span"></div>
							<div class="theme-poptit">
								<a href="/ho/javascript:;" title="关闭" class="close">×</a>
							</div>
							<div class="theme-popbod dform">
								<form class="theme-signin" name="loginform" action="" method="post">

									<div class="theme-signin-left">



										<div class="theme-options">
											<div class="cart-title number">数量</div>
					<dd>
						<input id="min" class="am-btn am-btn-default" name="" type="button" value="-" />
						<input id="text_box" name="" type="text" value="1" style="width:30px;" />
						<input id="add" class="am-btn am-btn-default" name="" type="button" value="+" />
						<span id="Stock" class="tb-hidden">库存<span class="stock">1000</span>件</span>
					</dd>

			</div>
			<div class="clear"></div>

			<div class="btn-op">
				<div class="btn am-btn am-btn-warning">确认</div>
				<div class="btn close am-btn am-btn-warning">取消</div>
			</div>
		</div>
		<div class="theme-signin-right">
			<div class="img-info">
				<img src="/ho/images/songzi.jpg" />
			</div>
			<div class="text-info">
				<span class="J_Price price-now">¥39.00</span>
				<span id="Stock" class="tb-hidden">库存<span class="stock">1000</span>件</span>
			</div>
		</div>

		</form>
	</div>
</div>

</dd>
</dl>
<div class="clear"></div>
<!--活动	-->
<div class="shopPromotion gold">

	<div class="clear"></div>
	<div class="coupon">
		<dt class="tb-metatit">优惠券</dt>
		<div class="gold-list">
			<ul>
				<li>125减5</li>
				<li>198减10</li>
				<li>298减20</li>
			</ul>
		</div>
	</div>
</div>
</div>

<div class="pay">
	<div class="pay-opt">
		<a href="/ho/home.html"><span class="am-icon-home am-icon-fw">首页</span></a>
		<a><span class="am-icon-heart am-icon-fw">收藏</span></a>

	</div>
	<li>
		<div class="clearfix tb-btn tb-btn-buy theme-login">
			<a id="LikBuy" title="点此按钮到加入收藏" href="/home/favorite/insert/{{$data[0]['gid']}}">收藏</a>
		</div>
	</li>
	<li>
		<div class="clearfix tb-btn tb-btn-buy theme-login">
			<a id="LikBuy" title="点此按钮到下一步确认购买信息" href="/ho/#">立即购买</a>
		</div>
	</li>
	<li>
		<div class="clearfix tb-btn tb-btn-basket theme-login">
			<a id="LikBasket" title="加入购物车" onclick="addCart({{$data[0]['gid']}})" href="javascript:void(0);"><i>加入购物车</i></a>
		</div>
	</li>
</div>

</div>
<script>
	function addCart(gid){
		var num = $('#text_box').val();
		$.post('/home/cart',{'num':num,'gid':gid,'_token':'{{csrf_token()}}'},function(msg){
			if(msg == 1){
				alert('添加成功');
			}
			if(msg == '2'){
				//询问框
				layer.confirm('请先登录,才能加入购物车哦？', {
				  btn: ['去登录','取消'] //按钮
				}, function(){
					location.href="/home/login/index";
				  // layer.msg('的确很重要', {icon: 1});
				}, function(){
				  // layer.msg('', {
				  //   time: 20000, //20s后自动关闭
				  //   btn: ['明白了', '知道了']
				  // });
				});
			}
		})
	}
</script>
<div class="clear"></div>

</div>


<div class="clear"></div>


<!-- introduce-->

<div class="introduce">
	<div class="browse">
		<div class="mc">

		</div>
	</div>
	<div class="introduceMain">
		<div class="am-tabs" data-am-tabs>
			<ul class="am-avg-sm-3 am-tabs-nav am-nav am-nav-tabs">
				<li class="am-active">
					<a href="/ho/#">

						<span class="index-needs-dt-txt">宝贝详情</span></a>

				</li>

				<li>
					<a href="#">

						<span class="index-needs-dt-txt">全部评价</span></a>

				</li>


			</ul>

			<div class="am-tabs-bd">

				<div class="am-tab-panel am-fade am-in am-active">


					<div class="details">
						<div class="attr-list-hd after-market-hd">
							<h4>商品细节</h4>
						</div>
						<div class="twlistNews">
							<img src="http://lamp187mall.oss-cn-beijing.aliyuncs.com/{{$data[0]['gphoto']}}" />

						</div>
						<div id="gcontent">
							{!! $data[0]['gcontent'] !!}

						</div>
						<script>
							$("#gcontent > p").attr("style","color:red;font-size: 50px;");
						</script>

					</div>
					<div class="clear"></div>

				</div>

				<div class="am-tab-panel am-fade">

					<div class="actor-new">
					</div>
					<div class="clear"></div>
					<div class="tb-r-filter-bar">
						<ul class=" tb-taglist am-avg-sm-4">
							<li class="tb-taglist-li tb-taglist-li-current one">
								<div class="comment-info">
									<a href="javascriopt:void(0);"><span>全部评价</span></a>
									<span class="tb-tbcr-num">({{count($comment[0])}})</span>
								</div>
							</li>

							<li class="tb-taglist-li tb-taglist-li-1 one">
								<div class="comment-info">
									<a href="javascriopt:void(0);"><span>好评</span></a>
									<span class="tb-tbcr-num">({{count($comment[1])}})</span>
								</div>
							</li>

							<li class="tb-taglist-li tb-taglist-li-0 one">
								<div class="comment-info">
									<a href="javascriopt:void(0);"><span>中评</span></a>
									<span class="tb-tbcr-num">({{count($comment[2])}})</span>
								</div>
							</li>

							<li class="tb-taglist-li tb-taglist-li--1 one">
								<div class="comment-info">
									<a href="javascriopt:void(0);"><span>差评</span></a>
									<span class="tb-tbcr-num">({{count($comment[3])}})</span>
								</div>
							</li>
						</ul>
					</div>
					<div class="clear"></div>

					<ul class="am-comments-list am-comments-list-flip two">
					@foreach($comment[0] as $k=>$v)
						<li class="am-comment">
							<!-- 评论容器 -->
							<a href="/ho/">
								<img class="am-comment-avatar" src="/ho/images/hwbn40x40.jpg" />
								<!-- 评论者头像 -->
							</a>

							<div class="am-comment-main">
								<!-- 评论内容容器 -->
								<header class="am-comment-hd">
									<!--<h3 class="am-comment-title">评论标题</h3>-->
									<div class="am-comment-meta">
										<!-- 评论元数据 -->
										<a href="/ho/#link-to-user" class="am-comment-author">{{$v['user']['uname']}}</a>
										<!-- 评论者 -->
										评论于
										<time datetime="">{{$v['gctime']}}</time>
									</div>
								</header>

								<div class="am-comment-bd">
									<div class="tb-rev-item " data-id="255776406962">
										<div class="J_TbcRate_ReviewContent tb-tbcr-content ">
											{{$v['gccontent']}}
										</div>
										<div class="tb-r-act-bar">
											规格：{{$data[0]['gfeature']}}

										</div>
									</div>
									@if($v['reply'])
										<hr>
										&nbsp;&nbsp;商家回复：{{$v['reply']['rcontent']}}
									@endif
								</div>
								<!-- 评论内容 -->
							</div>

						</li>
						@endforeach
					</ul>
					<ul class="am-comments-list am-comments-list-flip two" style="display:none">
					@foreach($comment[1] as $k=>$v)
						<li class="am-comment">
							<!-- 评论容器 -->
							<a href="/ho/">
								<img class="am-comment-avatar" src="/ho/images/hwbn40x40.jpg" />
								<!-- 评论者头像 -->
							</a>

							<div class="am-comment-main">
								<!-- 评论内容容器 -->
								<header class="am-comment-hd">
									<!--<h3 class="am-comment-title">评论标题</h3>-->
									<div class="am-comment-meta">
										<!-- 评论元数据 -->
										<a href="/ho/#link-to-user" class="am-comment-author">{{$v['user']['uname']}}</a>
										<!-- 评论者 -->
										评论于
										<time datetime="">{{$v['gctime']}}</time>
									</div>
								</header>

								<div class="am-comment-bd">
									<div class="tb-rev-item " data-id="255776406962">
										<div class="J_TbcRate_ReviewContent tb-tbcr-content ">
											{{$v['gccontent']}}
										</div>
										<div class="tb-r-act-bar">
											规格：{{$data[0]['gfeature']}}
										</div>
									</div>
									@if($v['reply'])
										<hr>
										&nbsp;&nbsp;商家回复：{{$v['reply']['rcontent']}}
									@endif

								</div>
								<!-- 评论内容 -->
							</div>
						</li>
						@endforeach
					</ul>

					<ul class="am-comments-list am-comments-list-flip two" style="display:none">
					@foreach($comment[2] as $k=>$v)
						<li class="am-comment">
							<!-- 评论容器 -->
							<a href="/ho/">
								<img class="am-comment-avatar" src="/ho/images/hwbn40x40.jpg" />
								<!-- 评论者头像 -->
							</a>

							<div class="am-comment-main">
								<!-- 评论内容容器 -->
								<header class="am-comment-hd">
									<!--<h3 class="am-comment-title">评论标题</h3>-->
									<div class="am-comment-meta">
										<!-- 评论元数据 -->
										<a href="/ho/#link-to-user" class="am-comment-author">{{$v['user']['uname']}}</a>
										<!-- 评论者 -->
										评论于
										<time datetime="">{{$v['gctime']}}</time>
									</div>
								</header>

								<div class="am-comment-bd">
									<div class="tb-rev-item " data-id="255776406962">
										<div class="J_TbcRate_ReviewContent tb-tbcr-content ">
											{{$v['gccontent']}}
										</div>
										<div class="tb-r-act-bar">
											规格：{{$data[0]['gfeature']}}
										</div>
									</div>
									@if($v['reply'])
										<hr>
										&nbsp;&nbsp;商家回复：{{$v['reply']['rcontent']}}
									@endif

								</div>
								<!-- 评论内容 -->
							</div>
						</li>
						@endforeach
					</ul>

					<ul class="am-comments-list am-comments-list-flip two" style="display:none">
					@foreach($comment[3] as $k=>$v)
						<li class="am-comment">
							<!-- 评论容器 -->
							<a href="/ho/">
								<img class="am-comment-avatar" src="/ho/images/hwbn40x40.jpg" />
								<!-- 评论者头像 -->
							</a>

							<div class="am-comment-main">
								<!-- 评论内容容器 -->
								<header class="am-comment-hd">
									<!--<h3 class="am-comment-title">评论标题</h3>-->
									<div class="am-comment-meta">
										<!-- 评论元数据 -->
										<a href="/ho/#link-to-user" class="am-comment-author">{{$v['user']['uname']}}</a>
										<!-- 评论者 -->
										评论于
										<time datetime="">{{$v['gctime']}}</time>
									</div>
								</header>

								<div class="am-comment-bd">
									<div class="tb-rev-item " data-id="255776406962">
										<div class="J_TbcRate_ReviewContent tb-tbcr-content ">
											{{$v['gccontent']}}
										</div>
										<div class="tb-r-act-bar">
											规格：{{$data[0]['gfeature']}}
										</div>
									</div>
									@if($v['reply'])
										<hr>
										&nbsp;&nbsp;商家回复：{{$v['reply']['rcontent']}}
									@endif

								</div>
								<!-- 评论内容 -->
							</div>
						</li>
						@endforeach
					</ul>
					<div class="clear"></div>

					<!--分页 -->
					<div class="clear"></div>

				</div>



			</div>

		</div>

		<div class="clear"></div>

		<div class="footer">
			<div class="footer-hd">
				<p>
					<a href="/ho/#">恒望科技</a>
					<b>|</b>
					<a href="/home/index">商城首页</a>
					<b>|</b>
					<a href="/ho/#">支付宝</a>
					<b>|</b>
					<a href="/ho/#">物流</a>
				</p>
			</div>
			<div class="footer-bd">
				<p>
					<a href="/ho/#">关于恒望</a>
					<a href="/ho/#">合作伙伴</a>
					<a href="/ho/#">联系我们</a>
					<a href="/ho/#">网站地图</a>
					<em>© 2015-2025 Hengwang.com 版权所有</em>
				</p>
			</div>
		</div>
	</div>

</div>
</div>

<script type="text/javascript">
	$('.one').click(function(){
		var num = $(this).index();
		$('.two').css('display','none');
		$('.two').eq(num).css('display','block');
	})

</script>

</body>

</html>